package exercise;
import java.util.*;
public class TestNumber {
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		System.out.println("please click into a integer");
		int num=sc.nextInt();
		String str=num+"=";
		while(appronum(num)){
			for(int i=2;i<=num/2;i++){
				if(num%i==0){
					str=str+i+"*";
					num=num/i;
					break;
				}
			}
		}
		str=str+num;
		System.out.println(str);
	}
	public static boolean appronum(int num){
		for(int i=2;i<=num/2;i++){
			if(num%i==0)
				return true;
			
		}
		return false;
	}

}

